package com.lyz.myself.service;

import com.github.pagehelper.PageInfo;
import com.lyz.myself.pojo.Po.Company;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @program: 机构相关信息mapper
 * @Date: 2019/1/14 15:46
 * @Author: Mr.Deng
 * @Description:
 */
public interface CompanyService {
    PageInfo<Map<String, String>> selectAllCompany(int pageNum, int pageSize);

    int deleteByPrimaryKey(Integer company_id);

    /**
     * 增加机构信息
     *
     * @param company
     * @return
     */
    boolean insertSelective(Company company);

    Company selectByPrimaryKey(Integer company_id);

    /**
     * 修改机构信息
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(Company record);

    /**
     * 删除机构
     *
     * @param company_id
     * @return
     */
    boolean deleteCompany(String company_id);

}
